/**
 * 
 */
package com.ymatou.api.sellerpromotion.service;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

/**
 * @author zhaopeipei
 * 根据商品Id集合获取商品促销信息
 */
public class GetSellerPromotionInfoByProductIdsCall extends YmatouAutoTestCall{

	private static String opurl ="/api/Promotion/GetSellerPromotionInfoByProductIds";
	
	public GetSellerPromotionInfoByProductIdsCall() {
		super(EnvSetup.getSystemUrl("sellerpromotion_api"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	
	public static void main(String[] args) throws ClientProtocolException, IOException {
	
		//Map<String,Object> map = new HashMap<String,Object>();
		
//		map.put("SellerId",3384);
//		map.put("PromotionInfo->PromotionType",3);
		//map.put("PromotionInfo->PromotionValues[0]->QtyCondition",3);
		
		
		JSONObject retBea = new GetSellerPromotionInfoByProductIdsCall().callAndGetReturnData();
	}
}